package db

import (
	"gorm.io/driver/mysql"
	"gorm.io/gorm"
	"log"
)

const (
	dsn = "root:123456@tcp(192.168.50.1:20001)/jwt?charset=utf8mb4&parseTime=True&loc=Local"
)

var (
	DB *gorm.DB
)

func init() {
	var (
		err error
	)
	DB, err = gorm.Open(mysql.Open(dsn), &gorm.Config{})
	if err != nil {
		log.Fatal(err)
	}
}
